<template>
	<view class="comment">
		<view v-for="(item,index) in list" :key="index">
			<view class="top">
				<view>
					<image :src="item.app_avatar" mode="aspectFill" class="avatar"></image>
					<text class="nickname">{{item.app_nickname}}</text>
				</view>
				<view class="image">
					<block v-for="(ite,ind) of 5" :key="index">
						<image
							v-if="(ind+1) <= item.level"
							:src="vuex_httpImageUrl+'static/common/xx1.png'"
							mode="widthFix"
							class="xx"
						></image>
						<image
							v-else
							:src="vuex_httpImageUrl+'static/common/xx.png'"
							mode="widthFix"
							class="xx"
						></image>
					</block>
				</view>
			</view>
			<view class="msg">{{item.sys}}</view>
			<view class="img">
				<image v-for="(item,index) in item.images" :src="item" mode="aspectFill"></image>
			</view>
			<view class="time">{{item.createtime}}</view>
		</view>		
	</view>
</template>

<script>
	export default{
		props:['list'],
	}
</script>

<style lang="scss">
	.comment{
		width: 95%;
		margin: auto;
		>view{
			border-bottom:1px solid rgba(0,0,0,.05);
			padding-bottom: 20rpx;
			margin-bottom: 20rpx;
			.top{
				display: flex;
				align-items: center;
				justify-content: space-between;
				>view{
					display: flex;
					align-items: center;
					.avatar{
						width: 80rpx;
						height: 80rpx;
						margin-right: 10rpx;
						border-radius: 50%;
					}
					.xx{
						width: 35rpx;
						height: 35rpx;
						margin-left: 10rpx;
					}
				}
			}
			.msg{
				margin: 20rpx 0;
			}
		
			.img{
				image{
					width: 150rpx;
					height: 150rpx;
				}
			}
			
			.time{
				font-size: 24rpx;
				font-weight: bold;
				color: rgba(0,0,0,.3);
			}
		}
	}
</style>
